extends RefCounted


class_name ParabolaLine
"""
抛物线 y = a * x * x + b * x + c
"""


var a: float = 0
var b: float = 0
var c: float = 0


func from(p: Vector2) -> void:
    a = 0.005
    c = 0
    b = (p.y - a * p.x * p.x) / p.x

func get_y(x: float) -> float:
    return a * x * x + b * x + c
